#pragma once

#include "Control_Base.h"

class MouseStatus;
class KeyStatus;

namespace gui
{
	class Control_Body : public Control_Base
	{
	public:
		Control_Body(Vec<2, float> NewPos, Vec<2, float> NewSize, Control_Menu* NewParentMenu, Host& NewParentHost);
		virtual ~Control_Body();

	protected:
		virtual bool CheckIntersection();

		void HostVertexFixModification();
		void HostCloseParentMenu();

		Vec<2, float> Pos;
		Vec<2, float> Size;

		float* ParentMenuLayer;
		Vec<2, float>* ParentMenuPos;

		bool MouseAbove;
	};

}